package com.roadjava.rbac.es;

import com.roadjava.rbac.bean.entity.Resource;
import com.roadjava.rbac.bean.entity.ResourceDoc;
import lombok.Data;

import java.util.List;

@Data
public class PageResult {
    //资源列表
    private List<ResourceDoc> resources;
    //资源总数
    private Long total;

    public PageResult() {
    }

    public PageResult(Long total, List<ResourceDoc> resources) {
        this.total = total;
        this.resources = resources;
    }
}
